package com.synjones.config;

import com.blankj.utilcode.util.SPUtils;


public class Config {

    private static final String CONFIG_PRINT = "CONFIG_PRINT";

    private static final String CONFIG_IP = "CONFIG_IP";

    public static void openPrinter(boolean open){
        SPUtils.getInstance().put(CONFIG_PRINT,open);
    }

    public static boolean openedPrinter(){
        return SPUtils.getInstance().getBoolean(CONFIG_PRINT);
    }

    public static void setConfigIp(String ip){
        SPUtils.getInstance().put(CONFIG_IP,ip);
    }

    public static String getConfigIp() {
        return SPUtils.getInstance().getString(CONFIG_IP);
    }
}
